<template>
  <div>
      <h1>{{ message}}</h1>
      <button @click="btn">逆转世界</button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            message:'hello world'
        }
    },
    methods: {
        btn(){
            // this.message = this.message.split("").reverse().join("")
            let arr = this.message.split('')
            arr.reverse()
            this.message = arr.join('')
        }
    }
}
</script>

<style>

</style>